package com.tianluo.tianluobookstore.repository;

import com.tianluo.tianluobookstore.OrderPO;

import java.util.Date;
import java.util.List;

public interface OrderRepository {

    OrderPO queryOrderByBizSeq(String bizSeq);

    Integer createOrder(OrderPO orderPO);

    OrderPO queryOrderByOrderId(String orderId);

    int cancelOrder(String orderId);

    List<OrderPO> processTimeoutOrders(Date timeoutTime, Integer offset, Integer pageSize);

    int updateOrderStatus(String orderId, String status, String preStatus,String paymentStatus,String prePaymentStatus);
}
